#include <xp/net/ether.h>
#include <xp/bas/stdio.h>

int xp_main ()
{
	xp_char_t buf[24];
	xp_byte_t x[6] = { 0xFF, 0xFF, 0x12, 0x13, 0x14, 0x55 };
	int n;
	int i;
	
	for (i = 1; i < xp_countof(buf); i++) {
		n = xp_ether_ntoa (x, buf, i);
		xp_printf (XP_TEXT("%d, %d [%s]\n"), i, n, buf);
	}

	return 0;
}

